home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.19970626-19970929
/
000297_news@newsmaster….columbia.edu _Fri Sep 5 11:40:27 1997.msg
< prev
next >
Wrap
Internet Message Format
|
1997-09-28
|
2KB
Return-Path: <news@newsmaster.cc.columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id LAA29370
for <kermit.misc@watsun.cc.columbia.edu>; Fri, 5 Sep 1997 11:40:26 -0400 (EDT)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id LAA16601
for kermit.misc@watsun; Fri, 5 Sep 1997 11:40:25 -0400 (EDT)
Path: news.columbia.edu!panix!cam-news-hub1.bbnplanet.com!cpk-news-hub1.bbnplanet.com!news.bbnplanet.com!newsxfer3.itd.umich.edu!oleane!calvacom!not-for-mail
From: do11@calva.net (Dominique Ottello)
Newsgroups: comp.protocols.kermit.misc
Subject: define substitution variable (\%e) does not work within switch structure
Date: Fri, 05 Sep 1997 15:34:35 GMT
Organization: PCatHome&Me
Lines: 36
Message-ID: <34101aa2.852637@news.calvacom.fr>
Reply-To: do11@calva.net
NNTP-Posting-Host: ppp9-01.calvacom.fr
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Newsreader: Forte Agent 1.5/32.451
Xref: news.columbia.edu comp.protocols.kermit.misc:7618
Define substitution variable (\%e) does not change the content of the
variable when the define is inside a switch structure.
The same structure works fine with a named macro in place of the
substitution variable.
Try with this take file :
undefine Avion
undefine \%e
undefine Type
:Beg
ask Avion {Enter type (A320,B747,B767,) : }
if not defined Avion goto Beg
;
switch \m(Avion) {
:A320,define \%e CFM56-5A,break
:B747,define \%e CF6-80C2,break
:B767,define \%e CF6-80C2,break
:default,define \%e Unknown,break
}
echo {Macro \\%e : [\%e]}
;
switch \m(Avion) {
:A320,define Type CFM56-5A,break
:B747,define Type CF6-80C2,break
:B767,define Type CF6-80C2,break
:default,define Type Unknown,break
}
echo {Macro Type : [\m(Type)]}
Comments please.
Best regards,
== Dominique Ottello == do11@calva.net == Paris == France ==